home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / WORDPAD.IN_ / wordpad.inf
Windows Setup INFormation  |  1996-07-21  |  7KB  |  198 lines

  1. ; WORDPAD.INF
  2. ;
  3. ; This is the Setup information file to install WordPad
  4. ; as an Optional Component.
  5. ;
  6. ; Copyright (c) 1993-1995 Microsoft Corporation
  7. ;
  8.  
  9.  
  10. [version]
  11. signature="$CHICAGO$"
  12. ClassGUID={00000000-0000-0000-0000-000000000000}
  13. LayoutFile=layout.inf
  14.  
  15.  
  16. [DestinationDirs]
  17. WordPadCopyFiles        = 24,%PROGRAMF%\%ACCESSOR% ; LDID_APPS\Program Files\Windows NT\Accessories
  18. WordPadCopyFiles_HELP   = 18    ; LDID_HELP
  19. WordPadFilesOld         = 24,%PROGRAMF%\%ACCESSOR% ; LDID_APPS\Program Files\Windows NT\Accessories
  20. WriteCopyFiles          = 11    ;LDID_SYSTEM
  21. WriteFilesOld           = 11    ;LDID_SYSTEM
  22.  
  23.  
  24. [BaseWinOptions]
  25. BaseSection
  26.  
  27.  
  28. [Optional Components]
  29. MSWordPad
  30.  
  31.  
  32. [BaseSection]
  33. AddReg          = BaseAddReg
  34.  
  35.  
  36. [MSWordPad]
  37. OptionDesc  = %MSWORDPADOPT_DESC%
  38. Tip         = %MSWORDPADOPT_TIP%
  39. IconIndex   = 39  ;Windows Logo mini-icon for dialogs
  40. Parent      = AccessTop
  41. InstallType = 10 ;Typical, Custom.
  42. CopyFiles   = WordPadCopyFiles, WordPadCopyFiles_HELP, WriteCopyFiles
  43. DelFiles    = WordPadFilesOld, WriteFilesOld
  44. AddReg      = WordPadReg, WordPad.install.reg
  45. UpdateInis  = WordPadInis
  46. Uninstall   = MSWordPadUninstall
  47. Upgrade     = MSWordPadUpgrade
  48. Detect      = %24%\%PROGRAMF%\%ACCESSOR%\wordpad.exe
  49.  
  50.  
  51. [MSWordPadUninstall]
  52. DelFiles       = WordPadCopyFiles, WordPadCopyFiles_HELP, WordPadFilesOld, WriteCopyFiles
  53. UpdateInis     = WordPadInis.remove
  54. AddReg         = WordPad.remove.reg
  55. DelReg         = WordPadReg
  56.  
  57.  
  58. [MSWordPadUpgrade]
  59. CopyFiles   = WordPadCopyFiles, WordPadCopyFiles_HELP, WriteCopyFiles
  60. DelFiles    = WordPadFilesOld, WriteFilesOld
  61. AddReg      = WordPad.install.reg
  62.  
  63.  
  64. [BaseAddReg]
  65. ;Create entries for Maint Mode Setup, set all initially to uninstalled:
  66. HKLM,%KEY_OPTIONAL%,"WordPad",,"WordPad"
  67. HKLM,%KEY_OPTIONAL%\WordPad,INF,,"wordpad.inf"
  68. HKLM,%KEY_OPTIONAL%\WordPad,Section,,"MSWordPad"
  69. HKLM,%KEY_OPTIONAL%\WordPad,Installed,,"0"
  70.  
  71.  
  72. [WordPadCopyFiles]
  73. ;(need to make sure the wpc files are hidden in the AddReg section below)
  74. mswd6_32.wpc
  75. wordpad.exe
  76. write32.wpc
  77.  
  78.  
  79. [WordPadCopyFiles_HELP]
  80. wordpad.cnt
  81. wordpad.hlp
  82.  
  83.  
  84. [WordPadFilesOld]
  85. mfc40u.dll
  86. msvcrt40.dll
  87.  
  88.  
  89. [WriteCopyFiles]
  90. ;copy stub program that launches wordpad.exe (for compat. reasons):
  91. write.exe
  92.  
  93.  
  94. [WriteFilesOld]
  95. write.cnt
  96. write.hlp
  97.  
  98.  
  99. [WordPadInis]
  100. setup.ini, progman.groups,, "group16=%APPS_DESC%"                                                ;creates folder
  101. setup.ini, group16,, """%WORDPAD_LINK%"", """"""%24%\%PROGRAMF%\%ACCESSOR%\wordpad.exe"""""""    ;creates link
  102.  
  103.  
  104. [WordPadInis.remove]
  105. setup.ini, progman.groups,, "group16=%APPS_DESC%"     ;creates Windows NT\Accessories folder (if not already there
  106. setup.ini, group16,, """%WORDPAD_LINK%"""             ;deletes link
  107.  
  108.  
  109. [WordPad.install.reg]
  110. HKLM,%KEY_OPTIONAL%\WordPad,Installed,,"1"
  111.  
  112.  
  113. [WordPad.remove.reg]
  114. ; sets status for Maint Mode Setup to 'not installed'
  115. HKLM,%KEY_OPTIONAL%\WordPad,Installed,,"0"
  116.  
  117.  
  118. [WordPadReg]
  119. ; Next line is in shell.inx to avoid overwriting key when making null file entry
  120. ;HKCR,.doc,,2,Wordpad.Document.1
  121.  
  122. HKCR,Wordpad.Document.1,,,%WORDPAD_DOC%
  123. HKCR,Wordpad.Document.1\Insertable,,,""
  124. HKCR,Wordpad.Document.1\Protocol,,,
  125. HKCR,Wordpad.Document.1\Protocol\StdFileEditing,,,
  126. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Server,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
  127. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb,,,
  128. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb\0,,,"%EDIT%"
  129. HKCR,Wordpad.Document.1\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
  130. HKCR,Wordpad.Document.1\shell\open\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  131. HKCR,Wordpad.Document.1\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
  132. HKCR,Wordpad.Document.1\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
  133. HKCR,Wordpad.Document.1\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  134.  
  135. ;
  136. ; Add "rtffile" section
  137. ;
  138.  
  139. HKCR,rtffile,,,%RTF_DOC%
  140. HKCR,rtffile\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
  141. HKCR,rtffile\shell\open\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  142. HKCR,rtffile\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
  143. HKCR,rtffile\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
  144. HKCR,rtffile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  145.  
  146. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,0"
  147.  
  148. ;
  149. ; update 3.x write stuff to use wordpad as server
  150. ;
  151.  
  152. HKCR,.wri,,,wrifile
  153. HKCR,wrifile,,,%WRITE_DOC%
  154. HKCR,wrifile\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,2"
  155. HKCR,wrifile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  156. HKCR,wrifile\shell\open\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  157. HKCR,wrifile\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
  158. HKCR,wrifile\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
  159.  
  160. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959},,,%WORDPAD_DOC%
  161. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
  162. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer32,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
  163. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\ProgId,,,WordPad.Document.1
  164. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\MiscStatus,,,0
  165. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\3,,,"%WORDPAD_LINK%"
  166. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\2,,,"%WORDPAD_DOC%"
  167. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\Insertable,,,
  168. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\1,,,"%OPEN%,0,2"
  169. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\0,,,"%EDIT%,0,2"
  170. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\InprocHandler32,,,ole32.dll
  171. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DataFormats\PriorityCacheFormats,"Rich Text Format",,""
  172.  
  173. ; set hidden flags on the .wpc files
  174. ; R=1; H=2; S=4; HS=6; SHR=7
  175. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\WordPadAttribSet,,2,"%24%\%PROGRAMF%\%ACCESSOR%"
  176. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\WordPadAttribSet,mswd6_32.wpc,,"mswd6_32.wpc,2"
  177. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\WordPadAttribSet,write32.wpc,,"write32.wpc,2"
  178.  
  179. ; set up the per-app path
  180. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE",,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
  181.  
  182. [Strings]
  183. KEY_OPTIONAL      = "SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"
  184. MSWORDPADOPT_DESC = "WordPad"
  185. MSWORDPADOPT_TIP  = "Editor for creating short memos and documents"
  186.  
  187. APPS_DESC         = "Accessories"
  188. WORDPAD_LINK      = "WordPad"
  189. WORDPAD_DOC       = "WordPad Document"
  190. RTF_DOC           = "Rich Text Document"
  191. WRITE_DOC         = "Write Document"
  192. EDIT              = "&Edit"
  193. OPEN              = "&Open"
  194.  
  195. PROGRAMF          = "Program Files"
  196. ACCESSOR          = "Windows NT\Accessories"
  197.  
  198.